Had you done any work on the car before this issue came up?
The most common thing I have seen that causes what you are describing after watching Z forums for 15 years, and having experienced it myself is having the ground and hot wires reversed on the alternator.